import Vue from 'vue';
import Router from 'vue-router';

import Home from './pages/Home.vue';
import Login from './pages/Login.vue';
import Profile from './pages/Profile.vue';
import Settings from './pages/Settings.vue';
import GameList from './pages/GameList.vue';
import GameDetail from './pages/GameDetail.vue';
import About from './pages/About.vue';
import Contact from './pages/Contact.vue';

Vue.use(Router);

export default new Router({
  routes: [
    { path: '/', component: Home },
    { path: '/login', component: Login, meta: { hideSidebar: false } },
    { path: '/profile', component: Profile },
    { path: '/settings', component: Settings },
    { path: '/games', component: GameList },
    { path: '/games/:id', component: GameDetail },
    { path: '/about', component: About },
    { path: '/contact', component: Contact },
  ],
});